<?php
$db_shop = pc_base::load_model('shop_model');

function status2cn($a) {
    switch ($a) {
        case 0:
            return '待发货';
            break;
        case 1:
            return '已发货';
            break;
        case 2:
            return '已取消';
            break;
    }
}
?>
{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix">
	<h3 class="fl"><a href="{get_ref(MEMBER_PATH)}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">我的订单</span>
	<!-- <ul class="user-cont fr">
		<li id="navMore"><a href="{MEMBER_PATH}" title="个人中心"><img src="{IMG_PATH2}icon/navMore1.png" alt="个人中心"></a></li>
	</ul> -->
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main">
	<div class="h_20"></div>
{if count($arr)<1}
	<div class="wrongPage">
    	<img src="{IMG_PATH2}icon/noolder.png" style="margin:0 auto; width:90% ">
        <a href="{$CATEGORYS[6][url]}" class="backHome">去商城看看</a>
    </div>
{/if}
	<ul class="oListOrder">
{loop $arr $mall}
{php $shop=$db_shop->pkhs($mall[a_id])}
		<li class="clearfix">
		<a href="{$shop[url]}">
			<img src="{$shop[thumb]}" class="fl img1">
			<div class="oListOrdercon">
				<div class="oListOrdercon_t ellipsis">{$shop[title]}</div>
				<div class="olderDate">订单时间：{$mall[ymdhis]}</div>
				<div class="olderxf clearfix">
					<span class="fl">学分：<em>{$mall[cost]}</em></span>
					<span class="fr"><?php echo status2cn($mall['status']); ?></span>
				</div>
			</div>
		</a>
		</li>
{/loop}
	</ul>
</main>
<!-- / main -->

{template "member","footer"}



